import React from 'react';

export default ({ station }) => {
  return (
    <iframe
      width="100%"
      height="100%"
      src={`https://embed.windy.com/embed2.html?lat=${station?.latitude || 39.9}&lon=${
        station?.longitude || 116.3
      }&detailLat=${station?.latitude || 39.9}&detailLon=${
        station?.longitude || 116.3
      }&zoom=5&level=surface&overlay=wind&product=ecmwf&menu=&message=true&marker=true&calendar=now&pressure=&type=map&location=coordinates&detail=true&metricWind=m%2Fs&metricTemp=%C2%B0C&radarRange=-1`}
      frameBorder="0"
    />
  );
};
